package com.laowu.bean;

/**
 * 响应消息实体类
 * 
 * @author laoxu
 * @since v1.0.1
 *
 */
public class ResponseMsg {

	private int code;
	private String error;
	private Object data;

	public ResponseMsg() {
		
	}

	public ResponseMsg(int code, Object data) {
		this(code, data, "");
	}

	public ResponseMsg(int code, Object data, String error) {
		this.code = code;
		this.data = data;
		this.error = error;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
